//
//  SEGMessageUserModel.m
//  ExcellentHome
//
//  Created by 揭婧雯 on 2017/10/19.
//  Copyright © 2017年 陈区. All rights reserved.
//

#import "SEGMessageUserModel.h"

@implementation SEGMessageUserModel
- (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    self = [super init];
    if (self) {
        _sex = @"";
        _icon = @"";
        _level = @"";
        _isAuth = @"";
        _nickName = @"";
        _userId = @"";
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{}
- (void)setSex:(NSString*)sex{
    _sex = [[SEGUtils ValueToString:sex]copy];
}
- (void)setIcon:(NSString*)icon{
    _icon = [[SEGUtils ValueToString:icon]copy];
}
- (void)setLevel:(NSString*)level{
    _level = [[SEGUtils ValueToString:level]copy];
}
- (void)setIsAuth:(NSString*)isAuth{
    _isAuth = [[SEGUtils ValueToString:isAuth]copy];
}
- (void)setNickName:(NSString*)nickName{
    _nickName = [[SEGUtils ValueToString:nickName]copy];
}
- (void)setUserId:(NSString*)userId{
    _userId = [[SEGUtils ValueToString:userId]copy];
}
@end
